home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_29888.txt < prev    next >
Text File  |  1990-10-02  |  8KB  |  325 lines

  1. -- card: 29888 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 4809
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global ladderHole
  9.   if ladderHole
  10.   then set the loc of card button "ladder" to 138,177
  11. else set the loc of card button "ladder" to 180,120
  12. send cardOpened to background
  13. end openCard
  14.  
  15. on move
  16.   global direction,chase,blasting,ladderHole,blastDam,holeDam
  17.   if direction = "south" or direction = "rear" then
  18.     if blastDam then
  19.       go to card id 26754
  20.     else
  21.       if holeDam then
  22.         go to card id 27307
  23.       else
  24.         go to card id 26200
  25.       end if
  26.     end if
  27.     exit move
  28.   end if
  29.   if direction = "down" then
  30.     beep
  31.     put "The shaft is filled with water. You would drown if you went down!" into field 3
  32.     exit move
  33.   end if
  34.   pass move
  35. end move
  36.  
  37.  
  38. on closeCard
  39.   set the cursor to 4
  40.   put "" into field 3
  41. end closeCard
  42.  
  43. on take
  44.   global object,carried,ladderHole,oldRoom,newRoom,cardID,prevID
  45.   put last word of object into obj
  46.   delete first char of obj
  47.   delete last char of obj
  48.   if obj="ladder" then
  49.     hide object
  50.     set the loc of object to 180,120
  51.     put false into ladderHole
  52.     put "30264" into oldRoom
  53.     put "6984" into newRoom
  54.     send roomChange to background
  55.     put cardID into prevID
  56.   end if
  57.   -- remember to update carried if you do not pass take
  58.   pass take
  59. end take
  60.  
  61. on drop
  62.   global object,dropRoom,carried,ladderHole
  63.   answer "Drop object in this room, or into the shaft?" with "shaft" or "room"
  64.   if it="shaft" then
  65.     put "Splash!" into field 3
  66.     if ladderHole then
  67.       put "30264" into dropRoom
  68.     else
  69.       put "6984" into dropRoom
  70.     end if
  71.   end if
  72.   -- remember to update carried if you do not pass drop
  73.   pass drop
  74. end drop
  75.  
  76. on use
  77.   global object,carried,ladderHole,oldRoom,newRoom
  78.   put last word of object into obj
  79.   delete first char of obj
  80.   delete last char of obj
  81.   if obj="ladder" then
  82.     show object
  83.     set the loc of object to 170,134
  84.     set the loc of object to 159,148
  85.     set the loc of object to 148,162
  86.     set the loc of object to 138,177
  87.     put "The rope ladder is tied to the pitons and leads into the shaft." into field 3
  88.     put true into ladderHole
  89.     put "6984" into oldRoom
  90.     put "30264" into newRoom
  91.     send roomChange to background
  92.     exit use
  93.   end if
  94.   -- update carried if object lost (or do so in inv. card button)
  95.   pass use
  96. end use
  97.  
  98.  
  99.  
  100.  
  101.  
  102. -- part 16 (button)
  103. -- low flags: 80
  104. -- high flags: 2000
  105. -- rect: left=122 top=230 right=266 bottom=156
  106. -- title width / last selected line: 0
  107. -- icon id / first selected line: 9301 / 9301
  108. -- text alignment: 1
  109. -- font id: 0
  110. -- text size: 12
  111. -- style flags: 0
  112. -- line height: 16
  113. -- part name: knife
  114. ----- HyperTalk script -----
  115. on mouseUp
  116.   global takeFlag,examFlag,object,cardID
  117.   put the name of the target into object
  118.   if takeFlag = true
  119.   then send take to card id cardID
  120. else put "a knife" into field 3
  121. put false into examFlag
  122. end mouseUp
  123.  
  124.  
  125.  
  126. -- part 17 (button)
  127. -- low flags: 80
  128. -- high flags: 2000
  129. -- rect: left=72 top=224 right=260 bottom=106
  130. -- title width / last selected line: 0
  131. -- icon id / first selected line: 1015 / 1015
  132. -- text alignment: 1
  133. -- font id: 0
  134. -- text size: 12
  135. -- style flags: 0
  136. -- line height: 16
  137. -- part name: nodule
  138. ----- HyperTalk script -----
  139. on mouseUp
  140.   global takeFlag,examFlag,object,cardID
  141.   put the name of the target into object
  142.   if takeFlag = true
  143.   then send take to card id cardID
  144. else put "a silicon sphere" into field 3
  145. put false into examFlag
  146. end mouseUp
  147.  
  148.  
  149.  
  150. -- part 19 (button)
  151. -- low flags: 80
  152. -- high flags: 2000
  153. -- rect: left=198 top=153 right=189 bottom=232
  154. -- title width / last selected line: 0
  155. -- icon id / first selected line: 1019 / 1019
  156. -- text alignment: 1
  157. -- font id: 0
  158. -- text size: 12
  159. -- style flags: 0
  160. -- line height: 16
  161. -- part name: bomb
  162. ----- HyperTalk script -----
  163. on mouseUp
  164.   global takeFlag,examFlag,object,cardID
  165.   put the name of the target into object
  166.   if takeFlag = true
  167.   then send take to card id cardID
  168. else put "a time bomb" into field 3
  169. put false into examFlag
  170. end mouseUp
  171.  
  172.  
  173.  
  174. -- part 20 (button)
  175. -- low flags: 80
  176. -- high flags: 2000
  177. -- rect: left=30 top=155 right=191 bottom=64
  178. -- title width / last selected line: 0
  179. -- icon id / first selected line: 24317 / 24317
  180. -- text alignment: 1
  181. -- font id: 0
  182. -- text size: 12
  183. -- style flags: 0
  184. -- line height: 16
  185. -- part name: key
  186. ----- HyperTalk script -----
  187. on mouseUp
  188.   global takeFlag,examFlag,object,cardID
  189.   put the name of the target into object
  190.   if takeFlag = true
  191.   then send take to card id cardID
  192. else put "a key" into field 3
  193. put false into examFlag
  194. end mouseUp
  195.  
  196.  
  197.  
  198. -- part 21 (button)
  199. -- low flags: 80
  200. -- high flags: 2000
  201. -- rect: left=24 top=209 right=245 bottom=58
  202. -- title width / last selected line: 0
  203. -- icon id / first selected line: 7012 / 7012
  204. -- text alignment: 1
  205. -- font id: 0
  206. -- text size: 12
  207. -- style flags: 0
  208. -- line height: 16
  209. -- part name: gem
  210. ----- HyperTalk script -----
  211. on mouseUp
  212.   global takeFlag,examFlag,object,cardID
  213.   put the name of the target into object
  214.   if takeFlag = true
  215.   then send take to card id cardID
  216. else put "a glowing gem" into field 3
  217. put false into examFlag
  218. end mouseUp
  219.  
  220.  
  221.  
  222. -- part 35 (button)
  223. -- low flags: 00
  224. -- high flags: 0000
  225. -- rect: left=99 top=164 right=187 bottom=174
  226. -- title width / last selected line: 0
  227. -- icon id / first selected line: 0 / 0
  228. -- text alignment: 1
  229. -- font id: 0
  230. -- text size: 12
  231. -- style flags: 0
  232. -- line height: 16
  233. -- part name: 
  234. ----- HyperTalk script -----
  235. on mouseUp
  236.   global examFlag,direction,cardID,takeFlag
  237.   put false into takeFlag
  238.   if examFlag then
  239.     put "The shaft opening is filled with water." into field 3
  240.     put false into examFlag
  241.   else
  242.     put "down" into direction
  243.     send move to card id cardID
  244.   end if
  245. end mouseUp
  246.  
  247.  
  248.  
  249. -- part 18 (button)
  250. -- low flags: 00
  251. -- high flags: 2000
  252. -- rect: left=121 top=159 right=195 bottom=155
  253. -- title width / last selected line: 0
  254. -- icon id / first selected line: 14953 / 14953
  255. -- text alignment: 1
  256. -- font id: 0
  257. -- text size: 12
  258. -- style flags: 0
  259. -- line height: 16
  260. -- part name: ladder
  261. ----- HyperTalk script -----
  262. on mouseUp
  263.   global takeFlag,examFlag,object,cardID
  264.   put the name of the target into object
  265.   if takeFlag = true
  266.   then send take to card id cardID
  267. else put "a rope ladder" into field 3
  268. put false into examFlag
  269. end mouseUp
  270.  
  271.  
  272.  
  273. -- part 41 (button)
  274. -- low flags: 00
  275. -- high flags: 0001
  276. -- rect: left=119 top=186 right=203 bottom=156
  277. -- title width / last selected line: 0
  278. -- icon id / first selected line: 0 / 0
  279. -- text alignment: 1
  280. -- font id: 0
  281. -- text size: 12
  282. -- style flags: 0
  283. -- line height: 16
  284. -- part name: 
  285.  
  286.  
  287. -- part 42 (button)
  288. -- low flags: 00
  289. -- high flags: 0000
  290. -- rect: left=125 top=152 right=164 bottom=152
  291. -- title width / last selected line: 0
  292. -- icon id / first selected line: 0 / 0
  293. -- text alignment: 1
  294. -- font id: 0
  295. -- text size: 12
  296. -- style flags: 0
  297. -- line height: 16
  298. -- part name: 
  299. ----- HyperTalk script -----
  300. on mouseUp
  301.   global examFlag,takeFlag,direction,cardID
  302.   if takeFlag then
  303.     put "You can't take the pitons. They are solidly attached." into field 3
  304.     put false into takeFlag
  305.   else
  306.     put "Two pitons imbebbed in the stone floor." into field 3
  307.     put false into examFlag
  308.   end if
  309. end mouseUp
  310.  
  311.  
  312.  
  313. -- part contents for background part 25
  314. ----- text -----
  315. Square Room
  316. (looking north)
  317.  
  318. -- part contents for background part 24
  319. ----- text -----
  320. You are in a square room with a doorway to the south.  There is a hole in the floor which is currently filled with water.
  321.  
  322.  
  323. -- part contents for background part 36
  324. ----- text -----
  325. 1